Class yassl.setqnode
All Packages This Package Previous Next
Class yassl.setqnode
java.lang.Object
|
+----yassl.pnode
|
+----yassl.unarynode
|
+----yassl.binarynode
|
+----yassl.setqnode
-
public class
setqnode
-
extends binarynode
This node is an equivalent for the setq functionality.
It defines a new variable in the current environment,
returning an error if it already exists.
-
setqnode(String, pnode, pnode)
-
-
eval(Env)
-
For setq nodes, eval'ling actually adds a new variable in the
environment (functionality the same as the Scheme define)
-
wiggle()
-
Operator precedence for binary nodes works by making sure
the operator at the node has no greater precedence than
its left child.
setqnode
public setqnode(String vtype,
pnode varval,
pnode initval)
wiggle
public pnode wiggle()
-
Operator precedence for binary nodes works by making sure
the operator at the node has no greater precedence than
its left child.
-
Overrides:
-
wiggle in class binarynode
eval
public pnode eval(Env e) throws yasslError
-
For setq nodes, eval'ling actually adds a new variable in the
environment (functionality the same as the Scheme define)
-
Overrides:
-
eval in class pnode
All Packages This Package Previous Next